export const env = process.env.ENV;
// const url = env === 'prod' ? 'http://api2.lanchengiot.cn' : (env === 'dev' ? 'http://api.develop.lanchengiot.cn' : env === 'prew'? 'http://api.preview.lanchengiot.cn' : 'http://106.12.104.181:7002')
const url = env === 'prod' ? 'http://api2.lanchengiot.cn' : (env === 'dev' ? 'http://api2.lanchengiot.cn' : env === 'prew'? 'http://api.preview.lanchengiot.cn' : 'http://106.12.104.181:7002')
export const OPS_URL = `${url}/auth/v1`;
export const TEMP_URL = `${url}/temp/v1`;
export const BASE_URL = `${url}/core/v1`;
export const BASE_URLV2 = `${url}/core/v2`;

export const OWNER_URL = `${url}/product/v1`
export const USER_URL = `${url}/user/v1`

export const SCOKET_URL = env === 'prod' ? 'wss://msg2.lanchengiot.cn' : (env === 'dev' ? 'ws://106.12.104.181:9004' : env === 'prew'? 'ws://msg.preview.lanchengiot.cn' : 'ws://106.12.104.181:7004')
